package cn.etynit.user.mapper;

import cn.etynit.user.domain.Logininfo;
import cn.etynit.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author etynit
 * @since 2022-10-19
 */
public interface LogininfoMapper extends BaseMapper<Logininfo> {
    Logininfo findByUsername(@Param("username") String username, @Param("type") Integer type);

    Logininfo findByPhone(@Param("phone") String username, @Param("type") Integer type);

    Logininfo findByUserId(Long userId);
}
